<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
		<script type="text/javascript">
			function _ajax(method = "GET", url = "http://jianshe.bluej.cn/api/index/get_carousel", call_back = function(data){
				console.log(data)
			}){
				var xhr = new XMLHttpRequest();
				xhr.open(method, url);
				xhr.send();
				xhr.addEventListener("readystatechange", function(){
					if(xhr.readyState == 4 && xhr.status == 200){
						call_back(JSON.parse(xhr.responseText));
					}
				})
				
				
			}
			_ajax();
		</script>
	<body>
	</body>
</html>
